import request from '@/utils/request'

// 查询归档合同列表
export function listContractarchived(query) {
  return request({
    url: '/supply/contractarchived/list',
    method: 'get',
    params: query
  })
}

// 查询归档合同详细
export function getContractarchived(contractId) {
  return request({
    url: '/supply/contractarchived/' + contractId,
    method: 'get'
  })
}

// 新增归档合同
export function addContractarchived(data) {
  return request({
    url: '/supply/contractarchived',
    method: 'post',
    data: data
  })
}

// 修改归档合同
export function updateContractarchived(data) {
  return request({
    url: '/supply/contractarchived',
    method: 'put',
    data: data
  })
}

// 删除归档合同
export function delContractarchived(contractId) {
  return request({
    url: '/supply/contractarchived/' + contractId,
    method: 'delete'
  })
}
